package cn.thornbird.orgsync.vo.request;

import cn.thornbird.orgsync.entity.status.VerificationCodeUsage;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
public class CheckVerificationCodeRequest {

    private String username;

    @NotBlank(message = "验证码为必填项")
    @Pattern(regexp = SendVerificationCodeRequest.VERIFICATION_CODE_REG_EXP, message = "验证码不正确")
    private String verificationCode;

    @NotNull(message = "验证码用途不能为空")
    private VerificationCodeUsage usage;

}
